|
stepper25 2.2.1
|
This file contains API for Stepper 25 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_spi_master.h"#include "spi_specifics.h"Go to the source code of this file.
Data Structures | |
| struct | stepper25_t |
| Stepper 25 Click context object. More... | |
| struct | stepper25_cfg_t |
| Stepper 25 Click configuration object. More... | |
Enumerations | |
| enum | stepper25_return_value_t { STEPPER25_OK = 0 , STEPPER25_ERROR = -1 } |
| Stepper 25 Click return value data. More... | |
Functions | |
| void | stepper25_cfg_setup (stepper25_cfg_t *cfg) |
| Stepper 25 configuration object setup function. | |
| err_t | stepper25_init (stepper25_t *ctx, stepper25_cfg_t *cfg) |
| Stepper 25 initialization function. | |
| err_t | stepper25_default_cfg (stepper25_t *ctx) |
| Stepper 25 default configuration function. | |
| err_t | stepper25_write_reg (stepper25_t *ctx, uint8_t reg, uint8_t data_in) |
| Stepper 25 write register function. | |
| err_t | stepper25_read_reg (stepper25_t *ctx, uint8_t reg, uint8_t *data_out) |
| Stepper 25 read register function. | |
| void | stepper25_enable_device (stepper25_t *ctx) |
| Stepper 25 enable device function. | |
| void | stepper25_disable_device (stepper25_t *ctx) |
| Stepper 25 disable device function. | |
| void | stepper25_set_direction (stepper25_t *ctx, uint8_t dir) |
| Stepper 25 set direction function. | |
| void | stepper25_switch_direction (stepper25_t *ctx) |
| Stepper 25 switch direction function. | |
| uint8_t | stepper25_get_fault_pin (stepper25_t *ctx) |
| Stepper 25 get FAULT pin function. | |
| void | stepper25_set_step_pin (stepper25_t *ctx, uint8_t state) |
| Stepper 25 set STEP pin function. | |
| err_t | stepper25_clear_fault (stepper25_t *ctx) |
| Stepper 25 clear fault function. | |
| err_t | stepper25_enable_output (stepper25_t *ctx) |
| Stepper 25 enable output function. | |
| err_t | stepper25_disable_output (stepper25_t *ctx) |
| Stepper 25 disable output function. | |
| err_t | stepper25_set_step_mode (stepper25_t *ctx, uint8_t step_mode) |
| Stepper 25 set step mode function. | |
| err_t | stepper25_drive_motor (stepper25_t *ctx, uint32_t steps, uint8_t speed) |
| Stepper 25 driver motor function. | |
This file contains API for Stepper 25 Click Driver.